<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/member_global.css?t={ctime}" rel="stylesheet" type="text/css" />
<link href="../css/member_main_lot_all.css?t={ctime}" rel="stylesheet" type="text/css">
<link href="../css/member_main_lot_b{LottoID}.css?t={ctime}" rel="stylesheet" type="text/css">
<title>Lotto</title>
<script language="JavaScript">
<!--
function CheckChoice(){
	return CheckChoice83();

	var arrChBox = new Array(), j = 0, i = 0, objChBox, intBT = 0;
	var intMaxSd = 0, isFull = 0;
	with(document.SAFrm){
		for(i = 0; i <= 5; i++){
			if(BTData[5].checked)return CheckChoice83();
			if(BTData[i].checked){
				intBT = i + 78;
				intMaxSd = i + 3;
				break;
			}
		}

		for(j = 3; j >= 1; j--){
			arrChBox[j] = 0;
			for(i = 0; i <= 9; i++){
				objChBox = document.SAFrm["ChoiceNumber["+j.toString()+"]["+i.toString()+"]"];
				objChBox.disabled = false;
				ChangeClass(i, j, 0);
				if(objChBox.checked){
					arrChBox[j]++;
					ChangeClass(i, j, 0);
				}
				//if(arrChBox[j] == intMaxSd){
				//	break;
				//}
			}
		}
		for(j = 3; j >= 1; j--){
			if(arrChBox[j] == intMaxSd){
				for(i = 0; i <= 9; i++){
					objChBox = document.SAFrm["ChoiceNumber["+j.toString()+"]["+i+"]"];
					if(objChBox.checked == false)objChBox.disabled = true;
				}
				isFull++;
			}else if(arrChBox[j] > intMaxSd){
				for(i = 0; i <= 9; i++){
					objChBox = document.SAFrm["ChoiceNumber["+j.toString()+"]["+i+"]"];
					objChBox.checked = false;
				}
			}
		}
		BSubmit.disabled = (isFull == 3 && intBT != 0)?false:true;
	}
}

function CheckChoice83(){
	var arrChBox = new Array(), j = 0, i = 0, objChBox, intBT = 83;
	var intMaxSd = 21, isFull = 0, intTotal = 0;
	with(document.SAFrm){
		for(j = 3; j >= 1; j--){
			arrChBox[j] = 0;
			for(i = 0; i <= 9; i++){
				objChBox = document.SAFrm["ChoiceNumber["+j.toString()+"]["+i.toString()+"]"];
				objChBox.disabled = false;
				ChangeClass(i, j, 0);
				if(objChBox.checked){
					arrChBox[j]++;
					intTotal++;
					ChangeClass(i, j, 0);
				}
				if(intTotal == intMaxSd){
					break;
				}
			}
		}
		if(intTotal == intMaxSd){
			for(j = 3; j >= 1; j--){
				for(i = 0; i <= 9; i++){
					objChBox = document.SAFrm["ChoiceNumber["+j.toString()+"]["+i+"]"];
					if(objChBox.checked == false)objChBox.disabled = true;
				}
			}
		}
		BSubmit.disabled = (intTotal >= 9 && arrChBox[1] > 0 && arrChBox[2] > 0 && arrChBox[3] > 0)?false:true;
	}
}

function ChangeClass(intNum, intType, isOver){
	if(isOver == 1){
		document.getElementById("NumOdds"+intType.toString()+intNum.toString()).style.backgroundColor = '#CCFFCC';
	}else{
		if(document.SAFrm["ChoiceNumber["+intType+"]["+intNum+"]"].checked == false)document.getElementById("NumOdds"+intType.toString()+intNum.toString()).style.backgroundColor = '#FFFFFF';
	}
}

function SplitParam(){
	var strParam = "", arrParam = new Array(), i = 0;

	with(document.SAFrm){
		strParam = BTData.value;
		/*for(i = 0; i <= 5; i++){
			if(BTData[i].checked){
				strParam = BTData[i].value;
				break;
			}
		}*/
		arrParam = strParam.split("#");
		Bet_Type.value = arrParam[0];
		OddsID.value = arrParam[1];
		Odds.value = arrParam[2];
	}
	return true;
}
//-->
</script>
</head>

<body oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">

<form action="wager_common.php" name="SAFrm" target="leftFrame" method="post" onreset="setTimeout('CheckChoice()', 500);" onsubmit="SplitParam();">
<input type="hidden" name="UserID" value="{UserID}">
<input type="hidden" name="GambleID" value="{GambleID}">
<input type="hidden" name="LottoID" value="{LottoID}">
<input type="hidden" name="sid" value="{sid}">
<input type="hidden" name="Bet_Type" value="">
<input type="hidden" name="OddsID" value="">
<input type="hidden" name="Odds" value="">
<input type="hidden" name="Number" value="0">

<!--樣式2-->
<div class="topStyle_2">
<table class="mtop" width="725" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center" class="menu_title">{Title}</td>
			<td align="right" valign="top" class="mictxt">{Periods}<em id="GameNo">{SerialNo}</em>({OpeningDate}{ShowGameDate}&nbsp;{ShowGameTime})
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr class="menu_tab">
	<td nowrap="nowrap" class="menu_tab" >
			<!-- 3x3x3 
			<td width="16%"><input type="radio" name="BTData" value="78#{OddsID78}#{Odds78}" onclick="CheckChoice()" {Radio78}>&nbsp;3x3x3&nbsp;&nbsp;<a style="color: #FF0000; font-weight: 700;">{Odds78}</a></td>//-->
			<!-- 4x4x4 
			<td width="16%"><input type="radio" name="BTData" value="79#{OddsID79}#{Odds79}" onclick="CheckChoice()" {Radio79}>&nbsp;4x4x4&nbsp;&nbsp;<a style="color: #FF0000; font-weight: 700;">{Odds79}</a></td>//-->
			<!-- 5x5x6 
			<td width="16%"><input type="radio" name="BTData" value="80#{OddsID80}#{Odds80}" onclick="CheckChoice()" {Radio80}>&nbsp;5x5x5&nbsp;&nbsp;<a style="color: #FF0000; font-weight: 700;">{Odds80}</a></td>//-->
			<!-- 6x6x6 
			<td width="16%"><input type="radio" name="BTData" value="81#{OddsID81}#{Odds81}" onclick="CheckChoice()" {Radio81}>&nbsp;6x6x6&nbsp;&nbsp;<a style="color: #FF0000; font-weight: 700;">{Odds81}</a></td>//-->
			<!-- 7x7x7 
			<td width="16%"><input type="radio" name="BTData" value="82#{OddsID82}#{Odds82}" onclick="CheckChoice()" {Radio82}>&nbsp;7x7x7&nbsp;&nbsp;<a style="color: #FF0000; font-weight: 700;">{Odds82}</a></td>//-->
			<!-- 中 3 保 3 //-->
		<input type="radio" name="BTData" value="83#{OddsID83}#{Odds83}" onclick="CheckChoice()" {Radio83} /> {Num83}
	</td>
</tr>
</table>
</div>
<!--共用樣式-->

<table width="725" border="0" cellpadding="0" cellspacing="0" class="mbtab">
  <tr class="mbtitle">
    <td width="100">{Cent}</td>
    <td width="100">{ChoiceTitle}</td>
    <td>&nbsp;</td>
    <td width="100">{Dec}</td>
    <td width="100">{ChoiceTitle}</td>
    <td>&nbsp;</td>
    <td width="100">{Unit}</td>
    <td width="100">{ChoiceTitle}</td>
    <td>&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 0 //-->
    <th>0</th>
    <td id="NumOdds30" class="mbline_ratio" AC30_S onmouseover="ChangeClass(0, 3, 1)" onmouseout="ChangeClass(0, 3, 0)" AC30_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][0]" value="0" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>0</th>
    <td id="NumOdds20" class="mbline_ratio" AC20_S onmouseover="ChangeClass(0, 2, 1)" onmouseout="ChangeClass(0, 2, 0)" AC20_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][0]" value="0" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>0</th>
    <td id="NumOdds10" class="mbline_ratio" AC10_S onmouseover="ChangeClass(0, 1, 1)" onmouseout="ChangeClass(0, 1, 0)" AC10_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][0]" value="0" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 1 //-->
    <th>1</th>
    <td id="NumOdds31" class="mbline_ratio" AC31_S onmouseover="ChangeClass(1, 3, 1)" onmouseout="ChangeClass(1, 3, 0)" AC31_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][1]" value="1" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>1</th>
    <td id="NumOdds21" class="mbline_ratio" AC21_S onmouseover="ChangeClass(1, 2, 1)" onmouseout="ChangeClass(1, 2, 0)" AC21_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][1]" value="1" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>1</th>
    <td id="NumOdds11" class="mbline_ratio" AC11_S onmouseover="ChangeClass(1, 1, 1)" onmouseout="ChangeClass(1, 1, 0)" AC11_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][1]" value="1" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 2 //-->
    <th>2</th>
    <td id="NumOdds32" class="mbline_ratio" AC32_S onmouseover="ChangeClass(2, 3, 1)" onmouseout="ChangeClass(2, 3, 0)" AC32_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][2]" value="2" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>2</th>
    <td id="NumOdds22" class="mbline_ratio" AC22_S onmouseover="ChangeClass(2, 2, 1)" onmouseout="ChangeClass(2, 2, 0)" AC22_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][2]" value="2" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>2</th>
    <td id="NumOdds12" class="mbline_ratio" AC12_S onmouseover="ChangeClass(2, 1, 1)" onmouseout="ChangeClass(2, 1, 0)" AC12_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][2]" value="2" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 3 //-->
    <th>3</th>
    <td id="NumOdds33" class="mbline_ratio" AC33_S onmouseover="ChangeClass(3, 3, 1)" onmouseout="ChangeClass(3, 3, 0)" AC33_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][3]" value="3" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>3</th>
    <td id="NumOdds23" class="mbline_ratio" AC23_S onmouseover="ChangeClass(3, 2, 1)" onmouseout="ChangeClass(3, 2, 0)" AC23_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][3]" value="3" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>3</th>
    <td id="NumOdds13" class="mbline_ratio" AC13_S onmouseover="ChangeClass(3, 1, 1)" onmouseout="ChangeClass(3, 1, 0)" AC13_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][3]" value="3" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 4 //-->
    <th>4</th>
    <td id="NumOdds34" class="mbline_ratio" AC34_S onmouseover="ChangeClass(4, 3, 1)" onmouseout="ChangeClass(4, 3, 0)" AC34_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][4]" value="4" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>4</th>
    <td id="NumOdds24" class="mbline_ratio" AC24_S onmouseover="ChangeClass(4, 2, 1)" onmouseout="ChangeClass(4, 2, 0)" AC24_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][4]" value="4" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>4</th>
    <td id="NumOdds14" class="mbline_ratio" AC14_S onmouseover="ChangeClass(4, 1, 1)" onmouseout="ChangeClass(4, 1, 0)" AC14_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][4]" value="4" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 5 //-->
    <th>5</th>
    <td id="NumOdds35" class="mbline_ratio" AC35_S onmouseover="ChangeClass(5, 3, 1)" onmouseout="ChangeClass(5, 3, 0)" AC35_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][5]" value="5" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>5</th>
    <td id="NumOdds25" class="mbline_ratio" AC25_S onmouseover="ChangeClass(5, 2, 1)" onmouseout="ChangeClass(5, 2, 0)" AC25_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][5]" value="5" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>5</th>
    <td id="NumOdds15" class="mbline_ratio" AC15_S onmouseover="ChangeClass(5, 1, 1)" onmouseout="ChangeClass(5, 1, 0)" AC15_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][5]" value="5" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 6 //-->
    <th>6</th>
    <td id="NumOdds36" class="mbline_ratio" AC36_S onmouseover="ChangeClass(6, 3, 1)" onmouseout="ChangeClass(6, 3, 0)" AC36_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][6]" value="6" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>6</th>
    <td id="NumOdds26" class="mbline_ratio" AC26_S onmouseover="ChangeClass(6, 2, 1)" onmouseout="ChangeClass(6, 2, 0)" AC26_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][6]" value="6" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>6</th>
    <td id="NumOdds16" class="mbline_ratio" AC16_S onmouseover="ChangeClass(6, 1, 1)" onmouseout="ChangeClass(6, 1, 0)" AC16_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][6]" value="6" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 7 //-->
    <th>7</th>
    <td id="NumOdds37" class="mbline_ratio" AC37_S onmouseover="ChangeClass(7, 3, 1)" onmouseout="ChangeClass(7, 3, 0)" AC37_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][7]" value="7" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>7</th>
    <td id="NumOdds27" class="mbline_ratio" AC27_S onmouseover="ChangeClass(7, 2, 1)" onmouseout="ChangeClass(7, 2, 0)" AC27_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][7]" value="7" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>7</th>
    <td id="NumOdds17" class="mbline_ratio" AC17_S onmouseover="ChangeClass(7, 1, 1)" onmouseout="ChangeClass(7, 1, 0)" AC17_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][7]" value="7" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 8 //-->
    <th>8</th>
    <td id="NumOdds38" class="mbline_ratio" AC38_S onmouseover="ChangeClass(8, 3, 1)" onmouseout="ChangeClass(8, 3, 0)" AC38_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][8]" value="8" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>8</th>
    <td id="NumOdds28" class="mbline_ratio" AC28_S onmouseover="ChangeClass(8, 2, 1)" onmouseout="ChangeClass(8, 2, 0)" AC28_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][8]" value="8" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>8</th>
    <td id="NumOdds18" class="mbline_ratio" AC18_S onmouseover="ChangeClass(8, 1, 1)" onmouseout="ChangeClass(8, 1, 0)" AC18_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][8]" value="8" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mcen"><!-- 9 //-->
    <th>9</th>
    <td id="NumOdds39" class="mbline_ratio" AC39_S onmouseover="ChangeClass(9, 3, 1)" onmouseout="ChangeClass(9, 3, 0)" AC39_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[3][9]" value="9" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>9</th>
    <td id="NumOdds29" class="mbline_ratio" AC29_S onmouseover="ChangeClass(9, 2, 1)" onmouseout="ChangeClass(9, 2, 0)" AC29_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[2][9]" value="9" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    <th>9</th>
    <td id="NumOdds19" class="mbline_ratio" AC19_S onmouseover="ChangeClass(9, 1, 1)" onmouseout="ChangeClass(9, 1, 0)" AC19_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[1][9]" value="9" class="zachk"></td>
    <td class="mbline">&nbsp;</td>
    </tr>
  <tr class="mfoot">
    <td colspan="9" class="mbline"><input name="BSubmit" type="submit" class="zabottonR" value="{BSubmit}" disabled>
      <input type="reset" value="{BReset}" class="zabotton">    </td>
    </tr>
</table>

</form>
</body>
</html>